<script setup>
import {toRaw, useAttrs} from "vue";

let props = defineProps(['info']);

let attrs = useAttrs();

console.log("props: ", props);
console.log("attrs: ", attrs);


</script>

<template>
  <h2>这是一个子组件</h2>
  <div>{{ props }}</div>
  <div>{{ attrs }}</div>
</template>

<style scoped>

</style>